package com.cosina.game.tetri.engine.impl.shape;

import com.cosina.game.tetri.engine.Point;
import com.cosina.game.tetri.engine.impl.BaseShapeImpl;

public class HillShape extends BaseShapeImpl {

	static Point[]  contentA = new Point[]{Point.c(0,0),Point.c(0,1),Point.c(1,1),Point.c(-1,1)};
	static Point[]  contentB = new Point[]{Point.c(0,0),Point.c(0,1),Point.c(0,2),Point.c(1,1)};
	static Point[]  contentC = new Point[]{Point.c(0,0),Point.c(1,0),Point.c(-1,0),Point.c(0,1)};
	static Point[]  contentD = new Point[]{Point.c(0,0),Point.c(0,1),Point.c(0,2),Point.c(-1,1)};	
	
	
	private Point[] content = contentA;
	@Override
	public void doTransfrom() {
		if(content == contentA){
			content = contentB;
		}else if(content == contentB){
			content = contentC;
		}else if(content == contentC){
			content = contentD;
		}else 
			content = contentA;
	}

	@Override
	public Point[] getContent() {
		return content;
	}

}
